﻿using System;
using SharpTrainer.DP.Singleton.Generic;
using Zeus.Thunder.Core;

namespace SharpTrainer.DesignPattern
{
    class SingletonGenericTest : ITestCase
    {
        public void Run()
        {
            // Constructor is protected -- cannot use new 
            Singleton s1 = Singleton.Instance(); 
            Singleton s2 = Singleton.Instance(); 
            
            if (s1 == s2) 
            { 
                Console.WriteLine("Objects are the same instance"); 
            }
        }
    }
}

